package com.jzlin.funhub.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzlin.funhub.admin.model.dto.SysMessageSessionDTO;
import com.jzlin.funhub.admin.model.entity.SysMessageSession;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 站内私信会话表 Mapper 接口
 * </p>
 *
 * @author jzlin
 * @since 2025-08-26
 */
public interface SysMessageSessionMapper extends BaseMapper<SysMessageSession> {
    List<SysMessageSessionDTO> querySessionByUser(@Param("userId") Long userId);

    Long querySessionIdByBothUser(@Param("userId1") Long userId1, @Param("userId2") Long userId2);
}
